<template>
  <el-tooltip
    v-bind="$attrs"
    :content="number.toString()"
    :disabled="number < 1000"
  >
    <span :style="{ color: textColor }">{{ number | formatterNumber }}</span>
  </el-tooltip>
</template>

<script>
export default {
  name: "NumberTooltip",
  props: ["number", "textColor"]
};
</script>

<style scoped></style>
